<h1><span class="reg_ico"></span><?= lang('label_wallet_withdraw'); ?></h1>

<ul class="breadcrumb">
    <li><a href="<?= base_url() ?>"><?= lang('label_home') ?></a></li>
    <li><a href="<?= base_url('user/profile') ?>"><?= lang('label_profile') ?></a></li>
    <li><a href="<?= base_url('mywallet') ?>"><?= lang('label_menu_link_mywallet'); ?></a></li>
    <li><?= lang('label_wallet_withdraw') ?></li>
</ul>


<div class="page">
    <form class="forms inside_1" action="<?php echo current_url() ?>" method="post">
        <div class="inner6">
            <?
            $url = base_url() . 'pages/payment';
            echo str_replace('%s', $url, lang('message_wallet_note_atintion'));
            ?>
        </div>
        <div class="text">
            <label for="amount">
                <?php echo lang('label_wallet_withdraw_amount') ?>
            </label>
            <samp>
                <input name="amount" id="amount" max="<?= account_wallet(); ?>" placeholder="<?php echo lang('label_wallet_withdraw_amount') ?>" value="<?php
                if (form_val('amount')) {
                    echo (form_val('amount') > account_wallet()) ? account_wallet() : form_val('amount');
                } else {
                    echo account_wallet();
                }
                ?>" type="number" />
            </samp>

        </div>
        <div class="text">
            <label for="sender_name">
                <?php echo lang('label_wallet_withdraw_sender_name') ?>
            </label>
            <samp>
                <input name="sender_name" id="sender_name" placeholder="<?php echo lang('label_wallet_withdraw_sender_name') ?>" value="<?php echo form_val('sender_name') ?>" type="text" />
            </samp>
        </div> 
        <div class="text">
            <label for="bank_name">
                <?php echo lang('label_wallet_withdraw_bank') ?>
            </label>
            <samp>
                <input name="bank_name" id="bank_name" placeholder="<?php echo lang('label_wallet_withdraw_bank') ?>" value="<?php echo form_val('bank_name') ?>" type="text" />
            </samp>
        </div>

        <div class="text">
            <label for="account_number">
                <?php echo lang('label_wallet_account_number') ?>
            </label>
            <?php echo form_error('account_number', '<div class="form_error">', '</div>'); ?>
            <samp>
                <input name="account_number" id="account_number" placeholder="<?php echo lang('label_wallet_account_number') ?>" value="<?php echo form_val('account_number') ?>" type="text" />
            </samp>
        </div>  
        <div class="textarea">
            <label for="note">
                <?php echo lang('label_wallet_note') ?>
            </label>
            <?php echo form_error('note', '<div class="form_error">', '</div>'); ?>
            <samp>
                <textarea name="note" id="note" placeholder="<?php echo lang('label_wallet_note') ?>" ><?php echo form_val('note') ?></textarea>
            </samp>
        </div> 

        <div class="submit">
            <input name="submit" value="<?= lang('label_done') ?>" type="submit"  >
        </div>
    </form></div>